package cn.myframe.utils.SysLogThreadLocal;

public class SysLogThreadLocal {
	public static ThreadLocal<Long> sysLogId=new ThreadLocal<Long>();

	public static Long getSysLogId() {
		return SysLogThreadLocal.sysLogId.get();
	}

	public static void setSysLogId(Long id) {
		SysLogThreadLocal.sysLogId.set(id);
	}
	
	public static void remove() {
		if(null != SysLogThreadLocal.sysLogId.get()) {
			SysLogThreadLocal.sysLogId.remove();
		}
	}
}
